import request from '@/utils/request'

// 查询报表列表
export function listReport (query) {
  return request({
    url: '/ajreport/report/list',
    method: 'get',
    params: query
  })
}

// 查询报表详细
export function getReport (id) {
  return request({
    url: '/ajreport/report/get/' + id,
    method: 'get'
  })
}

// 查询报表详细
export function getReportDetail (id) {
  return request({
    url: '/ajreport/report/' + id,
    method: 'get'
  })
}

// 新增报表
export function addReport (data) {
  return request({
    url: '/ajreport/report',
    method: 'post',
    data: data
  })
}

// 修改报表
export function updateReport (data) {
  return request({
    url: '/ajreport/report',
    method: 'put',
    data: data
  })
}

// 删除报表
export function delReport (id) {
  return request({
    url: '/ajreport/report/' + id,
    method: 'delete'
  })
}
